﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace RattlerRace
{
    /// <summary>
    /// Avtor: Denis Jakoša
    /// Razred Doors predstavlja vrata, skozi katera kača gre na naslednjo stopnjo.
    /// </summary>
    public class Door : Block
    {
        private bool _isOpen;
        
        public bool IsOpen
        {
            get { return _isOpen; }
            set { _isOpen = value; }
        }

        public void openDoors()
        {
            IsOpen = true;
            State = 0;
        }

        public Door()
        {
            State = 2;
            _isOpen = false;
            P = new Point(0, 20);
        }
    }
}
